package lab02.test05;

public class Cube {
    private float length;
    private float width;
    private float high;

    public void setCube(float length,float width,float high){
        this.length = length;
        this.width = width;
        this.high = high;

    }

    public void volume(){
        System.out.println("体积为："+length*width*high);
    }
}
